package com.example.hilt_learn.di.module

import com.example.hilt_learn.bean.Fruit
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ActivityComponent

@Module
@InstallIn(ActivityComponent::class)
object FruitModule {
    @Provides
    fun provideFruit(): Fruit {
        return Fruit("梨")
    }
}